home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / sound / music.i < prev    next >
Encoding:
Text File  |  1998-10-23  |  1.9 KB  |  68 lines

  1.     IFND SOUND_MUSIC_I
  2. SOUND_MUSIC_I  SET  1
  3.  
  4. **
  5. **    $VER: music.i
  6. **
  7. **    Music Definitions.
  8. **
  9. **    (C) Copyright 1998 DreamWorld Productions.
  10. **        All Rights Reserved
  11. **
  12.  
  13.     IFND    DPKERNEL_I
  14.     include 'dpkernel/dpkernel.i'
  15.     ENDC
  16.  
  17. *****************************************************************************
  18. * Module definitions.
  19.  
  20. Music_ModVersion  = 1
  21. Music_ModRevision = 0
  22.  
  23. *****************************************************************************
  24. * Music object.
  25.  
  26. VER_MUSIC  =    1
  27. TAGS_MUSIC =    (ID_SPCTAGS<<16)|ID_MUSIC
  28.  
  29.    STRUCTURE    MUS,HEAD_SIZEOF
  30.     APTR    MUS_Source        ;12 [RI] Filename/location of module.
  31.     LONG    MUS_Flags         ;16 [RI] Special flags.
  32.     APTR    MUS_Title         ;20 [RI] Title of the music.
  33.     APTR    MUS_Artist        ;24 [RI] Who wrote the music.
  34.     WORD    MUS_Tempo         ;28 [RI] Speed between 0 and 100.
  35.     WORD    MUS_Volume        ;30 [RI] Overall volume of music (0 - 100)
  36.     WORD    MUS_Priority      ;32 [RI] Priority over sounds (-100 to +100)
  37.     WORD    MUS_Position      ;34 [R-] Current position of the module.
  38.     APTR    MUS_Channels      ;36 [R-] Channel states.
  39.     APTR    MUS_prvData       ;40 [--] Pointer to loaded data */
  40.     WORD    MUS_TotalChannels ;44 [R-] Total available channels */
  41.  
  42. MSF_LOOP = $00000001            ;Restart module when finished.
  43.  
  44. * Music Tags.
  45.  
  46. MSA_Source   = (TAPTR|MUS_Source)
  47. MSA_Flags    = (TLONG|MUS_Flags)
  48. MSA_Title    = (TAPTR|MUS_Title)
  49. MSA_Artist   = (TAPTR|MUS_Artist)
  50. MSA_Tempo    = (TWORD|MUS_Tempo)
  51. MSA_Volume   = (TWORD|MUS_Volume)
  52. MSA_Priority = (TWORD|MUS_Priority)
  53.  
  54. *****************************************************************************
  55. * Jukebox object.
  56.  
  57. VER_JUKEBOX  = 1
  58. TAGS_JUKEBOX = ((ID_SPCTAGS<<16)|ID_JUKEBOX)
  59.  
  60.    STRUCTURE    JB,HEAD_SIZEOF
  61.     APTR    JB_Music     ;12 [R-] Chain of music objects (tracks).
  62.     LONG    JB_Track     ;16 [R-] The musical track that we are playing.
  63.     APTR    JB_Source    ;20 [RI] Source of juke-box information.
  64.  
  65. JBA_Source = (TAPTR|JB_Source)
  66.  
  67.   ENDC    ;SOUND_MUSIC_I
  68.